import { createApp } from 'vue'

import ElementPlus from 'element-plus'
import './styles/element-variables.scss'
import i18n from './lang'

import 'normalize.css'
import './styles/index.scss'

import router from './router/index'
import store from './store/index'
import './permission'

import 'vite-plugin-svg-icons/register'
import SvgIcon from './components/SvgIcon/index.vue'

import App from './App.vue'
const app = createApp(App)

app.use(ElementPlus,{
  i18n: i18n.global.t,
  size: 'small', 
  zIndex: 2021
})
app.use(i18n)

app.component('SvgIcon', SvgIcon)
app.use(router)
app.use(store)
app.mount('#app')
